package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.estore.entity.List_History;

public class List_HistoryMapper implements RowMapper<List_History> {

	@Override
	public List_History mapRow(ResultSet rs, int arg1) throws SQLException {
		List_History list_history = new List_History();
		list_history.setListID(rs.getInt("listID"));
		list_history.setStartDate(rs.getString("startDate"));
		list_history.setEndDate(rs.getString("endDate"));
		list_history.setSellingPrice(rs.getString("sellingPrice"));
		list_history.setDiscount(rs.getString("discount"));
		return list_history;
	}

}
